package com.basic.common.http;

//import com.nxin.etpojar.common.exception.Errors;
//import com.nxin.etpojar.common.exception.business.ValidationException;
//import com.nxin.etpojar.common.json.JsonDsUtil;
//import org.apache.commons.io.IOUtils;

/**
 * @author
 */
public class HttpRequestBeanDsUtils {


//    public  static <T> T  requestToReqForm(HttpServletRequest request,Class<T> beanClass){
//        try{
//            String requestPostStr = IOUtils.toString(request.getInputStream(), Charset.forName("UTF-8"));
//            T t = JsonDsUtil.jsonStrToBean(requestPostStr, beanClass);
//            return t;
//        }catch (Exception e){
//            throw new ValidationException(Errors.SYSTEM_DATA_CONVERT_ERROR);
//        }
//    }
}
